package com.cr.front.order.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class OrderSaveParam {
    @NotNull(message = "车辆id不能为空")
    @ApiModelProperty(value = "车辆id")
    private Long vehicleId;
    @NotNull(message = "取车地不能为空")
    @ApiModelProperty(value = "取车地")
    private Integer addr;
    @NotNull(message = "取车地不能为空")
    @ApiModelProperty(value = "取车地")
    private Integer pickupCityId;
    @NotEmpty(message = "取车时间不能为空")
    @ApiModelProperty(value = "取车时间")
    private String startDate;
    @NotEmpty(message = "还车时间不能为空")
    @ApiModelProperty(value = "还车时间")
    private String endDate;
    @NotNull(message = "支付类型不能为空")
    @ApiModelProperty(value = "优惠类型")
    private Long couponType;
}
